import {request} from "@/utils/request";
//查询所有学生数据
export  function  SelectAllStudent(pageNum,pageSize){
    return request({
        url:'/student/selectAllList',
        method:'GET',
        params: {pageNum,
                pageSize}
    })
}
//添加学生信息
export function AddStudentInfo(msq) {
    return request({
        url: '/student/insertStudent',
        method: 'POST',
        data: msq
    })
}
//修改学生信息
export  function updateStudent(msq){
        return request({
            url:'/student/updateStudent',
            method:'POST',
            data:msq
        })
}
//删除学生信息
export function delStudentById(msq){
    return request({
        url:'/student/delByStuId',
        method:'POST',
        data:msq
    })
}
//根据学号查询学生信息
export function selectByStuIdStudent(msq){
    return request({
        url:'/student/selectOneByStuid',
        method:'GET',
        params:msq
    })
}
//------------------------------学籍---------------------------
//根据学号查询学籍信息
export function selectBystuId(msq){
    return request({
        url:'/archeives/selectBystuId',
        method:'GET',
        params: msq
    })
}
//学籍信息查询所有
    export function selectAllList(pageNum,pageSize){
        return request({
            url:'/archeives/selectAllList',
            method:'GET',
            params: {pageNum,
                pageSize}
        })
    }
export function AddAcademic(msq){
//    新知学籍信息
    return request({
        url:'/archeives/insertAcademicArchives',
        method:'POST',
        data:msq
    })
}
//修改
export function updateAcademic(msq) {
    return request({
        url: '/archeives/updateByStuId',
        method: 'POST',
        data: msq
    })
}
//删除
export function  delAcademic(msq) {
    return request({
        url: '/archeives/delBystuId',
        method: 'POST',
        data: msq
    })
}
//查询课表
export function selectAllCourse(pageNum,pageSize) {
    return request({
        url: '/schedule/selectAllList',
        method: 'GET',
        params: {pageNum,
            pageSize}
    })
}

//查询成绩
export function selectAllScore(pageNum,pageSize) {
    return request({
        url: '/course/seletAll',
        method: 'GET',
        params: {pageNum,
            pageSize}
    })
}

// 人脸识别
export function faceVideo() {
    return request({
        url: '/Face/FaceVideo',
        method: 'GET',
    })
}
export function faceImgFlask(msg) {
    return request({
        url: '/Face/FaceImage',
        method: 'GET',
        data: msg
    })
}
export function getQiniuToken() {
    return request({
        url: '/Face/FaceUpload',
        method: 'GET',
    })
}
export function FaceBattleFlask() {
    return request({
        url: '/Face/FaceBattle',
        method: 'GET',
    })
}
